Partial Public Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

		If Not Page.IsPostBack Then
			Me.NumericTextBox1.Text = "12312312"
            'Me.DIO.Attributes.Add("onBlur", "alert('User DIO.onblur code!');")
            'Me.DIO.Attributes.Add("onChange", "alert('user DIO.onchange code!');")

            'Me.NumericTextBox3.Attributes.Add("onBlur", "alert('User NumericTextBox3.onblur code!');")
            'Me.NumericTextBox3.Attributes.Add("onChange", "alert('user NumericTextBox3.onchange code!');")
		End If


		lblLoaded.Text = Now.ToString

	End Sub

	Protected Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
		Me.Label1.Text = Me.NumericTextBox1.TextCLEAN
		Me.Label2.Text = Me.NumericTextBox1.Text
	End Sub

	Protected Sub btnRefreshUpdatePanel_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnRefreshUpdatePanel.Click

		lblRefreshed.Text = Now.ToString

		'load grid
		Dim oA As New ArrayList, i(10) As Integer

		For x As Integer = 0 To 9
			i(x) = x
			oA.Add(i)
		Next

		GridView1.DataSource = oA
		GridView1.DataBind()

	End Sub
End Class